package com.catazy.demo.app.network

import com.catazy.mvvmlib.net.http.BaseNetworkApi

/**
 * 作者: Tao
 * 日期: 2024/1/29
 * 时间: 15:37
 * 描述: 网络请求构建器
 */

val apiService: ApiService by lazy(mode = LazyThreadSafetyMode.SYNCHRONIZED) {
    NetworkApi.instance.getApi(ApiService::class.java, ApiService.SERVER_URL)
}
class NetworkApi : BaseNetworkApi() {

    companion object {
        val instance: NetworkApi by lazy(mode = LazyThreadSafetyMode.SYNCHRONIZED) {
            NetworkApi()
        }
    }
}